package com.zsx.demo;

import java.util.Scanner;

/**
 * 〈4〉
 *
 * @author zhangsixian
 * @create 2021/6/11
 * @since 1.0.0
 */
public class Test4 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String ss = s.nextLine();
        String[] split = ss.split(" ");
        int ll = split.length;
        System.out.println(split[ll -1].length());
    }
}
